package com.util;

import com.bean.dto.Dto;

/**
 * 数据传输工具
 */
public class DtoUtil {

    public static Dto returnSuccess(){
        return new Dto("0", null, null, "true");
    }
    public static Dto returnSuccess(String msg){
        return new Dto("0", msg, null, "true");
    }
    public static Dto returnSuccess(Object data){
        return new Dto("0", null, data, "true");
    }

    public static Dto returnFail(String msg){
        return new Dto("0", msg, null, "false");
    }

}
